# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=qalculate-qt
pkgver=4.8.1
pkgrel=1
pkgdesc='Qt frontend for libqalculate'
arch=(loong64 x86_64)
url='https://qalculate.github.io/'
license=(GPL)
depends=(gcc-libs
         glibc
         libqalculate
         qt6-base
         qt6-svg)
makedepends=(qt6-tools)
source=(https://github.com/Qalculate/qalculate-qt/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('34977c8d02d47831c21a9a25ef967d8c5eefe630ec10f86347a7c598891300d5')

build() {
  cd $pkgname-$pkgver
  qmake6 \
    PREFIX=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
